package cn.elwy.rcp.ui.explorer.create;

import cn.elwy.rcp.ui.explorer.core.vo.BuilderModule;
import cn.elwy.rcp.ui.table.provider.TablePaneCheckStateProvider;

public class ModuleChoiceCheckStateProvider extends TablePaneCheckStateProvider {

	public ModuleChoiceCheckStateProvider() {
	}

	@Override
	public boolean isChecked(Object object) {
		if (object instanceof BuilderModule) {
			return ((BuilderModule) object).isBuilder();
		}
		return false;
	}

	@Override
	public boolean isGrayed(Object object) {
		return false;
	}

}
